import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
    state: {
        isloading: false,    //ajax loading
        orderType:'',
    },
    mutations: {
        loading (state) {
            state.isloading = true
        },
        closeLoading(state){
            state.isloading = false
        },
        orderType(state,type){
            state.orderType = type
        }
    }
})